import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`table-info-data` + url, ...arg)

export default {
	// 获取分页
	page(data) {
		return request('/page-info', data, 'post')
	},
	// 提交表单 edit为true时为编辑，默认为新增
	submitForm(data, edit = false) {
		return request('', data,edit ? 'put' : 'post')
	}
	
}
